<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width:800px;
            height: 800px;
            border: 2px solid red;
            /*  background-image:默认是平铺的repeat*/
            background-image: url("imags/6.jpg");
        }
        /* background-repeat:可以选择图片铺的方式*/
        .div1{
            background-repeat: repeat-y;
        }
        .div2{
            background-repeat: repeat-x;
        }
        .div3{
            background-repeat: no-repeat;
        }
    </style>
</head>
<body>
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
</body>
</html>